from port_job.day04.interface.Event import Event


class EventCase:
    def __init__(self):
        self.event = Event()
    def test_add_event(self):
        data = {"eid": "798",
                "name": "小康发布会",
                "limit": "100",
                "status": "1",
                "address": "阳光花园",
                "start_time": "2022-07-19",
                }
        result = self.event.add_event(data)
        status_code = result.get('status_code')
        assert status_code == '200'
        print(status_code)
        status = result.get('boby').get('status')
        assert status == 10200
        print(status)
if __name__ == '__main__':
    event_case = EventCase()
    event_case.test_add_event()







